package com.guodi.map.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @描述：地图功能模块目录/图层表
 * @作者: 代鹏刚
 * @日期: 2019-12-13
 */
@Getter
@Setter
@ApiModel(value="地图功能模块目录/图层表")
public class MapFunctionDir implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "目录/图层名称")
    private String name;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "上级目录ID")
    private String parentId;

    @ApiModelProperty(value = "图层URL")
    private String layerUrl;

    @ApiModelProperty(value = "分析内容字段")
    private String analysisContentField;

    @ApiModelProperty(value = "内容编码字段")
    private String contentCodeField;

    @ApiModelProperty(value = "行政区划字段")
    private String divisionField;

    @ApiModelProperty(value = "面积字段")
    private String areaField;

    @ApiModelProperty(value = "结果表格地类名称字段")
    private String landNameField;

    @ApiModelProperty(value = "数据标识字段")
    private String dataIdField;

    @ApiModelProperty(value = "机构ID")
    private String orgId;

    @ApiModelProperty(value = "图层ID")
    private String layerId;

    @ApiModelProperty(value = "目录/图层 类型（1.目录，2图层，3：组合图层）")
    private Integer type;

    @ApiModelProperty(value = "功能模块id")
    private String functionId;

    @ApiModelProperty(value = "状态（1：启用，0：禁用）")
    private Integer status;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    private String modifier;

    @ApiModelProperty(value = "修改时间")
    private Date modifyTime;

    @ApiModelProperty(value = "子节点")
    @TableField(exist = false)
    private List<MapFunctionDir> children;

    /**
    * @描述: 结果集扩展字段
    * @作者: 代鹏刚
    * @日期: 2020/1/3 14:59
    **/
    @ApiModelProperty(value = "当前目录等级")
    @TableField(exist = false)
    private Integer treeLevel;
    @ApiModelProperty(value = "上级目录名称")
    @TableField(exist = false)
    private String parentName;
    @ApiModelProperty(value = "图层信息")
    @TableField(exist = false)
    private MapLayer mapLayer;

    @ApiModelProperty(value = "数据库名称")
    private String dbName;

    @ApiModelProperty(value = "表名")
    private String className;

    @ApiModelProperty(value = "表名(别名)")
    private String classAlias;

    @ApiModelProperty(value = "字段名")
    private String fieldName;

    @ApiModelProperty(value = "字段名(别名)")
    private String fieldAlias;

    @ApiModelProperty(value = "动态分析字段")
    private String dynamicFields;

    @ApiModelProperty(value = "数据存储单元)")
    private Integer storageCell;

    @ApiModelProperty(value = "是否图层目录（0：否，1：是）")
    private Integer isLayerDir;

    @ApiModelProperty(value = "")
    @TableField(exist = false)
    private Boolean isDir;

    @ApiModelProperty("图层名")
    private String layerName;

}
